<?php
class CommandContext{

	private $params = array();
	private $error = "";

	function __construct(){
		$this->params = $_REQUEST;
	}

	function addParam($key,$val){
		$this->params[$key] = $val;
	}

	function get($key){
		return $this->params[$key];
	}

	function setError($error){
		$this->error = $error;
	}

	function getError(){
		return $this->error;
	}
}